﻿using Learn.Infraestrutura.Attr;
using Learn.Infraestrutura.Dto.Request;
using Learn.Infraestrutura.Dto.Response;
using Learn.Infraestrutura.EFCore;
using System;
using System.Collections.Generic;
using System.Text;

namespace Learn.Service.Interface
{
    [Provider_]
    public interface I_Login_Service
    {
        /// <summary>
        /// 获取登录历史
        /// </summary>
        /// <param name="page"></param>
        /// <param name="limit"></param>
        /// <param name="uid"></param>
        /// <returns></returns>
        Api_Result Get_Log_History(int page, int limit, string uid);
        SysUsers Get_User_By_LastCode(string code, string ip);

        /// <summary>
        /// 用户登录
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Api_Result Logins(Login_Request_Dto dto);


        /// <summary>
        /// 重置密码
        /// </summary>
        /// <returns></returns>
        Api_Result Reset_Passwords();
    }
}
